import { db } from "@src/db"
import categories from "@src/db/schema/categories"

/* -------------------------------- Function -------------------------------- */
export const getCategories = () => {
  return db.select().from(categories);
}


export const createCategory = (name: string) => {
  return db.insert(categories).values({ title: name });
}
